<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <link rel="icon" href="./favicon.ico" />
    <?php
    // $site = get_site();
    $site =get_site();
    $p=pg('p')==''?1:pg('p');
    $classify_id=get_classify_id();
    $content_id=pg('content_id');
    $type_id=get_type_id();
    $search=pg('search');
    $member=session('member');
    $member_id=$member['member_id'];
    $recursive_classify_id=recursive_classify_id($classify_id,3)==''?3:recursive_classify_id($classify_id,3);
    $cart_num=M('cart')->where(array('member_id'=>$member['member_id']))->count();
    if($cart_num=='')$cart_num=0;
    $balance=M('account')->where(array('member_id'=>$member_id))->order('account_id desc')->getfield('balance');
    if($balance=='')$balance=0.00;
    $mobile_url='mobile.php?'.$_SERVER["QUERY_STRING"];
    ?>
    <title><?php echo $site['title'];?></title>
    <meta name="keywords" content="<?php echo $site['keywords'];?>" />
    <meta name="description" content="<?php echo $site['description'];?>" />
    <link href="css/chunk-vendors.0606ffef.css" rel="stylesheet" />
    <link href="css/login.965b680a.css" rel="stylesheet" />
    <script src="js/jquery-1.10.1.min.js"></script>

  <script src="./Admin/Tpl/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="./Admin/Tpl/js/jquery.form.js" type="text/javascript"></script>
<script src="./Admin/Tpl/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script src="./Admin/Tpl/js/common.js" type="text/javascript"></script>
<script charset="utf-8" src="ThinkPHP/Extend/Vendor/kindeditor-4.1.7/kindeditor.js"></script>

<script>
//引入artDialog
(function() {
	var _skin, _jQuery;
	var _search = window.location.search;
	if (_search) {
		_skin = _search.split('demoSkin=')[1];
	};
	document.write('<scr'+'ipt src="./Admin/Tpl/js/artDialog/artDialog.js?skin=' + (_skin || 'default') +'"></sc'+'ript>');
	window._isDemoSkin = !!_skin;
})();
</script>
<script src="./Admin/Tpl/js/artDialog/plugins/iframeTools.js"></script>
<script src="./Admin/Tpl/js/swfupload.js" type="text/javascript"></script>
<script src="./Admin/Tpl/js/fileprogress.js" type="text/javascript"></script>
<script src="./Admin/Tpl/js/handlers.js" type="text/javascript"></script>

  </head>
<body>
  <style>
    .page{ padding:10px; width:auto;height:auto;min-height:auto;}
  </style>
<div class="page">

        <!--
        <div class="body_left">
            <img src="<?php $classify=M('classify')->where(array('classify_id'=>204))->find();echo $classify['classify_img'];?>" alt="" />
        </div>
        -->

            <h1 class="body_left_title"><?php $classify=M('classify')->where(array('classify_id'=>204))->find();echo $classify['classify_name'];?></h1>
            <p class="body_left_subhead"><?php $classify=M('classify')->where(array('classify_id'=>204))->find();echo $classify['classify_intro'];?></p>
            <ul class="body_left_nav">
                <li class="body_left_nav_active router-link-exact-active router-link-active"></li>
                <li class=""><a href="?m=member&a=register" style="display: block;height: 100%;"></a></li>
            </ul>
            <form id="fjwues"  method="post" enctype="multipart/form-data">
            <div class="login_block_form">
                <div class="login_block_form_item user_">
                    <input type="text" name="username"  autocomplete="off" value="" placeholder="请输入您的账号" autocomplete="off" />
                </div>
                <div class="login_block_form_item password_">
                    <input type="password" name="password"  autocomplete="new-password" value="" placeholder="请输入您的密码" />
                </div>
                <div class="login_block_form_item password_" style="position: relative;">
                    <input type="text" name="verifycode" id="verifycode"  autocomplete="new-password" value="" placeholder="请输入验证码" />
                  <img style="height:30px;position:absolute;right: 20px; top: 25px;" title="点击可更换验证码" src="admin.php?m=login&a=verify" alt="" onclick="this.src='admin.php?m=login&a=verify&code='+Math.random()">
                </div>            </div>
            <div class="login_block_footer">
                <div class="login_block_footer_tools">
                    <!--<p class="remember_me"><label class="el-checkbox"><span class="el-checkbox__input"><span class="el-checkbox__inner"></span><input type="checkbox" aria-hidden="false" class="el-checkbox__original" value="" /></span><span class="el-checkbox__label">记住账号</span></label></p>-->
                </div>
                <div class="login_block_footer_button">
                    <a style="text-decoration: none;" href="?m=member&a=register" class="register_button">
                        去注册
                    </a>
                    <div id="tijisdo" class="login_button">
                        登录
                    </div>
                </div>
            </div>
            </form>
            <!--<a href="index.php" style="text-decoration: none;color: #333333;"> <div class="go_home"></div></a>-->
        </div>


<script>
    $('#tijisdo').click(function(){
      var html=ajax_load("index.php?m=member&a=verifycode&verifycode="+$("#verifycode").val());
      if(html!=1){
      	alert("验证码错误");
        return false;
      }
        let formdata = new FormData(fjwues);
        var url="?m=member&a=login_save";
        $.ajax({
            type:'post',
            url:url,
            data:formdata,
            cache:false,
            processData:false,
            contentType:false,
            success(res){
                if(res==1){
                    //alert("登录成功");
                    //window.location.href="index.php";
                  dialog_div_close('ajax_dialog');
                }else{
                    alert(res);
                }
            }
        });

    });
</script>
</body>
</html>